package com.ansion.basedb.dao.model;


import androidx.annotation.Keep;

import com.ansion.constant.BConstant;

import java.util.ArrayList;
import java.util.List;

@Keep
public class UserProfileExtraModel {
    public long uid;
    public Integer adAgeOfConsent;
    public Integer adChildDirectedTreatment;
    public final List<UserSettingNotice> userSettingNoticeList = new ArrayList<>();

    @Keep
    public static class UserSettingNotice {
        /**
         * for dismiss using nativeCall
         */
        public String key;

        /**
         * 打开地址
         */
        public String redirectUrl;

        /**
         * timestamp， 展示开始时间
         */
        public Long startTime;

        /**
         * seconds, 表示下次展示出来的默认值。不传则下次不展示，直到换key
         */
        public Long dismissDelayDefault;

        /**
         * 为true，才会在下次启动展示
         */
        public Boolean autoOpen;

        /**
         * 标题
         */
        public String headline;

        /**
         * 描述
         */
        public String description;

        /**
         * 图标地址
         */
        public String iconUrl;
        /**
         * 红点开关
         */
        public Boolean redDotSwitch;

        /**
         * 红点key
         */
        public String redDotKey;

        /**
         * 显示的优先级
         */
        public Integer displayPriority;
        /**
         * multi: 0, compat current ask age logic
         * once: 1, same ids only display once
         * mandatory: 2, MP controls closing it
         */
        @BConstant.PopupMode
        public Integer popupMode = BConstant.PopupMode.multi;

        /**
         * timestamp， 展示结束时间
         */
        public Long endTime;

        /**
         * trigger = [0-4] 为首页5个Tab切换；
         * trigger = 5 当前在首页并且符合popup执行规则，立即执行
         */
        public List<Integer> trigger;
    }

}
